package com.iwomy.envpro.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.github.yulichang.annotation.EntityMapping;
import java.util.List;

/**
 * 视频监控
 *
 * @author pig
 * @date 2023-11-28 14:36:24
 */
@Data
@TableName("basic_video_surveillance")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "视频监控")
public class BasicVideoSurveillanceEntity extends Model<BasicVideoSurveillanceEntity> {


	/**
	* ID
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="ID")
    private Long id;
 
	/**
	* appKey
	*/
    @Schema(description="appKey")
    private String appKey;
 
	/**
	* appSecret
	*/
    @Schema(description="appSecret")
    private String appSecret;

	/**
	* 设备序列号
	*/
    @Schema(description="设备序列号")
    private String deviceSerial;

	/**
	* 设备id
	*/
    @Schema(description="设备id")
    private Long monitorEquipmentId;

	/**
	* 创建人
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	@Schema(description="设备名称")
	private String deviceName;

	/**
	 * 部门ID
	 */
	@Schema(description = "用户所属部门id")
	private Long deptId;

	/**
	* 修改人
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="修改人")
    private String updateBy;

	/**
	* 修改时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="修改时间")
    private LocalDateTime updateTime;
 
	/**
	* delFlag
	*/
    @TableLogic
		@TableField(fill = FieldFill.INSERT)
    @Schema(description="delFlag")
    private String delFlag;

	/**
	* 租户ID
	*/
    @Schema(description="租户ID")
    private Long tenantId;
    @ExcelIgnore
    @TableField(exist = false)
    @EntityMapping(thisField = "monitorEquipmentId", joinField = "id")
    private List<AirMonitorEquipmentEntity> airMonitorEquipmentList;

	/**
	 * 部门
	 */
	@Schema(description = "用户所属部门")
	@TableField(exist = false)
	private String deptName;
}